package com.app.enums;

import lombok.Getter;

@Getter
public enum  ResponseEnum {
    ERROR(-1, "服务端错误"),

    SUCCESS(200, "成功"),

    PASSWORD_ERROR(1,"密码错误"),

    USERNAME_EXIST(2, "用户不存在"),

    EVA_ADD_FAIL(5,"新增评课失败"),
    COURSE_ADD_FAIL(6,"新增课程失败"),
    NEED_LOGIN(7,"请先登录"),
    PARAM_ERROR(8,"请先填写");
    //状态码
    Integer code;

    //描述
    String desc;

    ResponseEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
